package com.miaoxun.common.log;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * log
 */
public class LogHelper {

    public static void INFO(String format, Object arg, String logName) {
        if (logName == null || logName.equals(""))
            logName = LogHelper.class.getName();
        Logger logger = LoggerFactory.getLogger(logName);
    logger.info(format, arg);

    }

    public static void INFO(Object arg) {
        INFO("输出log{}", arg, "");
    }

    public static void INFO(Object arg, String logName) {
        INFO("输出log{}", arg, logName);
    }

    public static void INFO(String format, Object arg) {
        INFO(format, arg, "");
    }
}
